package com.lins.store.mapper;

import com.lins.store.entity.FileEntity;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
import java.util.Map;

@Mapper
public interface FileMapper {

    List<FileEntity> queryFloderAll(String uid);

    Integer saveFile(FileEntity fileEntity);

    List<FileEntity> findList(Map<String,String> paramMap);

    FileEntity findByFid(String fid);

    List<FileEntity> queryByPid(String pid);

    FileEntity findByPidAndFilename(Map<String,String> paramMap);

    List<FileEntity> findByUidAndFilename(FileEntity fileEntity);

    FileEntity findByFidAndUid(String fid,String uid);

    Integer delFileByFid(String fid);

    Integer delFileByUid(String uid);

    FileEntity getParIdByParUrl(String parUrl); //文件夹:根据父目录找父id

    Integer delNoParFile(); //删除无父文件

    Integer moveFile(Map<String,String> paramMap);

    Integer moveFileRun(Map<String,String> paramMap);

    Integer changeShare(Map<String, String> paramMap);

    List<FileEntity> ziFile(String url);

    List<FileEntity> ziFileByFid(String fid);

    Integer saveTemp(FileEntity fileEntity);

    Integer emptyTemp();

    List<FileEntity> findTempByUid(Map<String,String> paramMap);

    Integer renameByUid(FileEntity fileEntity);
}
